<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>管理员</title>
    <link rel="stylesheet" th:href="@{/css/Notice.css}">
</head>
<style>

</style>
<body>

<div align="center">
    <div>
        <font size="5"> 管理员列表 </font><br/>
    </div>
    <div >
        <table  border="1" >
            <tr>
                <th>管理员ID</th>
                <th>管理员姓名</th>
                <th>管理员密码</th>
                <th>管理員級別</th>
                <th>性别</th>
                <th>用户号码</th>
                <th>用户住址</th>
                <th>黑名单</th>
                <th>邮箱</th>
            </tr>
            <tr th:each="user : ${pageInfo.list}" >
                <td th:text="${user.userid}"></td>
                <td th:text="${user.username}"></td>
                <td th:text="${user.password}"></td>
                <td th:text="${user.role}"></td>
                <td th:text="${user.usersex}"></td>
                <td th:text="${user.userphone}"></td>
                <td th:text="${user.useraddress}"></td>
                <td th:text="${user.blacklist}"></td>
                <td th:text="${user.email}"></td>
            </tr>
        </table>

        <p>
            当前 <span th:text="${pageInfo.pageNum}"></span> 页,
            总 <span th:text="${pageInfo.pages}"></span> 页,
            共<span th:text="${pageInfo.total}"></span> 条记录
        </p>
        <div >
            <br>
            <a th:href="@{viewLog}"><button class="button1" style="cursor: pointer">首頁</button></a>
            <a th:href="@{viewLog(pageNum=${pageInfo.hasPreviousPage}?${pageInfo.prePage}:1)}"> <button class="button1" style="cursor: pointer">上一页</button></a>
            <a th:href="@{viewLog(pageNum=${pageInfo.hasNextPage}?${pageInfo.nextPage}:${pageInfo.pages})}"><button class="button1" style="cursor: pointer">下一頁</button></a>
            <a th:href="@{viewLog(pageNum=${pageInfo.pages})}"><button class="button1" style="cursor: pointer">末页</button ></a>
            <br>
        </div>
    </div>
</div>
</body>
</html>